// lib.h
//
//  SB means Super Bash!
//	lib of what?
//	just can't use C standard library...
//
//

#ifndef SB_LIB_H
#define SB_LIB_H

#define TRUE 1
#define FALSE 0
#define NULL 0

#ifndef SB_ASSERT
#define sb_assert(value) \
	do { \
		if (!value) { \
			sb_printf("ASSERTION Failed!\n"); \
			Halt(); \
		} \
	}while(0);
#endif

#define sb_debug(str) \
	do { \
		sb_printf("Debug : "); \
		sb_printf(str); \
		sb_printf("\n"); \
	}while(0);

// for in/output from standard in/output
// just read/write string...ah,ha!
void sb_printf(char *str);
void sb_scanf(char *dest);

// for character
int sb_isspace(char c);

// for string process
int sb_strlen(char *str);
int sb_strcp(char *str, char *destStr);
int sb_strcmp(char *str1, char *str2);
			// str1 > str2: return >0
int sb_strclr(char *str);


#endif
